Dry Realm

Get busy living

Category

  • DevOps
  • Javascript
  • Review
  • 一些技巧
  • 其它
  • 学习过程中的所感所想
  • 拼命学习
  • 那些年的所见所闻
  • 随笔

Tags

  • Node.js
  • MongoDB
  • linux
  • HTTP
  • 运维
  • typescript
  • docker
  • 面试总结
  • es6
  • express
  • jenkins pipeline
  • eslint
  • webpack
  • 数学
  • 负数
  • devcontainer
  • 数据库
  • 本地版博客
  • ntzyz大佬
  • Css
  • git
  • MySQL
  • ECMA
  • Gitlab Api
  • review
  • docker swarm
  • 离别
  • 下载youtube
  • 年度总结
  • k8s
  • 正则表达式
  • 语句
  • javascript
  • wsl2
  • 大黑猫
  • vscode
  • 新博客框架
  • 3rd-lib
  • 西安
  • 文字
  • 南京
  • new life
  • 子网掩码
  • Git
  • 数据库连接
  • linux指令
  • 第三方库
  • 网络

Recent replies

  • xzdry 发表于「使用ffmpeg和youtube-dl下载youtube视频」

友链

ntzyz double

我

真诚
很看重自己在乎的人
希望能越来越好
爱蛋蛋
标签:jenkins pipeline

pipeline轻量级检出的意思

2019 年 10 月 8 日分类:DevOps#运维#jenkins pipeline

经典UI里配置项轻量级检出的意思是只检查指定的脚本路径脚本的变化,而不获取整个git仓库的变化。比如我更改了readme,则workspace中不会有变化。并且也不会获得readme的提交(虽然能获取到脚本的更新但是也不会获取到对应的提交)。
如果要检出整个git仓库的变化,declarative式写法是默认检出的,如下图: 1604819006539-declearative_checkout_scm.png 在脚本式pipeline语法中,则需要加上checout scm,比如:

node {
  checkout scm
  stage('stage ex'){
    // do sth
  }
}
  • «
  • 1
  • »
Copyright © 2016-2018 ntzyz. All rights reversed.
Except where otherwise noted, content on this blog is licensed under CC-BY 2.0.